home *** CD-ROM | disk | FTP | other *** search
- #### Using DKBTrace 2.12 - Macintosh version 1.0.2 ####
-
- The DKBTrace application provided here requires a Macintosh with FPU and 32-Bit
- QuickDraw, running System 6.0.5 or newer. It will complain if your machine does
- not satisfy these requirements.
- To use it, select "Trace..." from the "File" menu. You will be presented with
- a dialog box specifying the tracing parameters. The options you can set here
- are the same as the command-line options detailed in the DKBTrace docs.
- The settings you enter in this dialog box will be remembered, even across
- multiple launches. Only the "Resume" option is always cleared, and the input
- file is not remembered across launches.
-
- The library search paths must be entered in the usual Mac fashion, with colons
- separating directories in the pathname. Spaces are allowed, as are partial
- pathnames. Pathnames are separated by carriage returns. By the way, I have
- experienced problems when the INIT "Cmdr. Dialog II" is active: you won't be
- able to type a Return in the "Library Search Paths" field, because this will
- be interpreted as clicking OK (even if it is disabled!). I have not been able
- to solve this, unfortunately.
-
- The output file is created in the same directory as the input file. It is
- automatically named: the suffix ".dat" or ".data" is stripped from the input
- file (if necessary), and the suffix ".dis" is added for Dump/QRT files, ".tga"
- for Targa files, and ".red", ".grn" and ".blu" for Raw files.
-
- You can abort a trace using "Abort" from the "File" menu. An aborted trace can
- be resumed later, as described in the DKBTrace manual. Be sure to leave the
- output file in the same directory as the input file so DKBTrace can find it.
-
- Final hint: if you experience out-of-memory problems when starting a second
- trace (or restarting one) within one session, try quitting and re-launching.
- This may also be necessary when resuming an aborted trace using Targa output
- format. These problems are caused by the fact that the DKBTrace code is called
- as a subroutine by the Mac front-end. It is not launched into a separate heap,
- so memory allocated but not explicitly freed will gradually fill the DKBTrace
- application's heap after multiple traces. Also, initialized globals are only
- initialized once, and not for every run. Apparently, the Targa-resume bug is
- caused by the latter problem.
-
- #### Changes ####
-
- 1.0 -> 1.0.1
- * Plot window now displays colours correctly.
- * Dithering in the Plot window is now optional.
- * Pause option added to setup dialog. When this option is on, the Plot window
- is not closed immediately when the trace is finished, so you get a chance to
- get a look at it.
-
- 1.0.1->1.0.2
- * Output files now get appropriate types and creators.
-
- #### Compiling DKBTrace 2.12 with MPW C 3.0 ####
-
- Replace the files dkbproto.h, prioq.c, quartics.c, render.c and trace.c from
- the DKBTrace distribution with the files in the this archive. Add the files
- DKBTrace.make, mac_mpw.c, mac_mpwconf.h, mac_mpw.r and mac_mpw.rsrc to the same
- directory. Rename mac_mpwconf.h to config.h. Make the directory containing all
- sources current, and type "BuildProgram DKBTrace".
-
- #### Added files: ####
-
- DKBTrace.make
- mac_mpw.c
- mac_mpwconf.h
- mac_mpw.r
- mac_mpw.rsrc
-
- #### Changed files: ####
-
- dkbproto.h
- dump.c
- prioq.c
- quartics.c
- raw.c
- render.c
- targa.c
- trace.c
-
- #### File changes: ####
-
- --------- dkbproto.h ---------
- Renamed "entry" to "Entry" everywhere; it is a reserved symbol in MPW C.
- Renamed "power" to "Power" everywhere; it conflicts with the power() function
- in the SANE library.
-
- --------- prioq.c ---------
- Renamed "entry" to "Entry" everywhere; it is a reserved symbol in MPW C.
-
- --------- quartics.c ---------
- Renamed "power" to "Power" everywhere; it conflicts with the power() function
- in the SANE library.
- Split some expressions in Intersect_Quartic() Quartic_Normal() to avoid MPW C's
- "expression too complicated" complaints; also optimized those expressions
- somewhat by eliminating some common subexpressions.
-
- --------- render.c ---------
- Made TEST_ABORT call conditionally compiled: it is now called from
- Start_Trace() on non-Mac systems (once per pixel) and from Trace() on Macs
- (once per ray).
- In Read_Rendered_Part() and Start_Tracing(): changed type cast for colour
- components (for display_plot() call) from (char) to (unsigned char). Casting
- to (char), MPW C gives values -128 to 127, while you want 0 to 255.
-
- --------- trace.c ---------
- main() renamed to Main()
- Made code to read trace.def (lines 336-340) conditionally compiled (not
- needed).
-
- --------- dump.c, raw.c, targa.c ---------
- Added code to set Mac file type & creator in Open_Dump_File(), Open_Raw_File()
- and Open_Targa_File().
-